<script type="text/javascript">
{literal}
	$(document).ready(function() {
		$('#test_list').tablesorter();
	});	
{/literal}
</script>
<br />
<div id="test_container" style="margin-top: 5px">
	<table id="test_list" cellspacing="0" cellpadding="0" class="grid" width="500px">
		<thead>
			<tr>
				<th class='first'>{translate}Test_1{/translate}</th>
				<th>{translate}Room{/translate}</th>
				<th>{translate}Type{/translate}</th>
				<th>{translate}Status_1{/translate}</th>	
				<th class='last'>&nbsp;</th>						
			</tr>
		</thead>
		<tbody>
		{foreach from=$testList item=test}
			<tr id="{$test.test_id}">
			    <td class='first'>
			        <a href="javascript:editTest({$test.test_id});" title="{translate}Edit test type{/translate}">{$test.test_name}
			        </a>
			    </td>
				<td>{$test.room_name}</td>
				<td>{$test.payment_type}</td>
			    {if $test.disabled == 0 }
                    <td><span>{translate}In Use_1{/translate}</span></td>
                    <td>
                        <a class="btn" href="javascript:changeGroupTestStatus({$test.test_id}, 'lock');" 
                            title="{translate}Service temporary locked{/translate}"> 
                            <img src="../images/lock_small.png" alt="{translate}Lock{/translate}"></img>
                        </a>
                    </td>
                {else if $test.disabled == 1 }
                    <td><span class="impression">{translate}Lock{/translate}</span></td>
                    <td>
                        <a class="btn" href="javascript:changeGroupTestStatus({$test.test_id}, 'unlock');" 
                            title="{translate}Reuse service{/translate}"> 
                            <img src="../images/unlock_small.png" alt="{translate}Reuse{/translate}"></img> 
                        </a>
                    </td>
                {/if}
			</tr>
		{/foreach}
		</tbody>
	</table>		
</div>
